package com.zhou.org.dto;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lang.zhou
 * @since 2022-08-23
 */
@Data
public class MenuSaveDto implements Serializable {

    private static final long serialVersionUID=1L;
    @Min(0)
    private Integer id;
    @NotBlank
    @Size(max = 50)
    private String menuName;
    @Size(max = 100)
    private String url;
    private String iconClass;
    @Min(0)
    private Integer lastMenuId = 0;

    private Integer sort = 0;

    /**
     * 0-菜单分类；1-普通菜单；2-功能菜单
     */
    @Min(0)
    @Max(2)
    private Integer menuType;


}
